package liu.xian.qingliu;

import liu.xian.Const;
import okhttp3.Interceptor;
import okhttp3.Response;

import java.io.IOException;

/**
 * [description]
 *
 * @Author liuxian
 * @Date 2021/2/8 8:38 下午
 */

public class QingliuRequestInterceptor implements Interceptor {
    public Response intercept(Chain chain) throws IOException {
        return chain.proceed(chain.request().newBuilder().addHeader(Const.ACCESS_TOKEN_HEADER, Const.ACCESS_TOKEN).build());
    }
}
